Split toGeoJSON() array building into getGeoArray()

toGeoJSON() now just run json_encode() on the array output.
This means you can get the array to push into another GeoJSON array
before encoding, and avoid decoding just to reencode.