Some small improvements

Still have an NPE with PostGIS _st_dumppoints.
And ST_Dump is not working correctly.