Make shp export honor the name of the attributes in the output schema

Before this change, exporting a feature with a geometry name other than "the_geom" (the default used by the geotools for a shapefile) resulted in an empty shp file

This fixes #646