Reworked geojson serializer to work with dictionaries only.