Auto-Closing polygons

GeoJSON defines linear rings as close if the first and the last point is equal. This path modifies the shape builders to close these linear rings automatically.

Closes #4085