Protect against datasets with no shape in their x/y
Fix "referenced before assignment" bugs
Assert we have polygons when trying to polygonize