Fix shapefile export for non-linestring results starting with NULL

Includes tests. Closes #111.