Surface is now a floating number (fixes #708)
Fix shapefile serialization if path has no trail (fixes #706)