added geoJSON when JSON serialized.
added unit tests for polygon and for the geoJSON serialize.