Preserve z coordinates in geometries

Hi Justin, here's very simple patch with very simple test case to preserve the z coordinate when writing geometries to WKB. All the tests pass with these changes. Not sure if z coordinates were intentionally disabled, but if not could you consider merging this?