Handle ESRI polygons and better check around source data type