#6: fixed compilation errors. #8: handled Z coordinate in geojson serialization