Serialisation spec

Spec for serialisation:

- [x] Point to json
- [x] Multipoint to json
- [x] Polyline to json
- [x] Polygon to json
- [x] Envelope to json