As mentioned on issue 6992, EsriFormat was adding the spatial reference outside the geometry, failing to insert data via the Arcgis rest API. The spatial reference should be inside the geometry.