Writing GeoJSON does not respect the feature's geometryName

When serializing GeoJSON from features that have a geometryName other than the default, the format tries to serialize geometries as property rather than a geometry.

<bountysource-plugin>

---
Want to back this issue? **[Place a bounty on it!](https://www.bountysource.com/issues/4293490-writing-geojson-does-not-respect-the-feature-s-geometryname?utm_campaign=plugin&utm_content=tracker%2F79013&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F79013&utm_medium=issues&utm_source=github).
</bountysource-plugin>