Remove trailing `NaN`s from geostructs

All geostructs had a needless row of `NaN`s at the end.
Also cleaned up the code a tad.
Add *geostruct2wkt*

I needed to convert something in the opposite direction.
It works with everything *wkt2geostruct* does except `MultiPolygon`s (#1).