Enhance close to work for Polygons with holes and MultiPolygons

Currently the `close()` method will only work with polygons with a single ring.

It would be nice if `close()` would close all rings and work on MultiPolygons as well.

We should also expose a `Tools.closeCoordinates` and a `Tools.closeRing` function as well.