Shapefile serialization almost working