Fix #toGeoJSON() as pointed out by @torbjornmeistad