Normalise spherical coordinates.

As well as wrapping longitudes, we also choose a consistent longitude
for polar points, to aid stitching of antimeridian cuts.