Core: Fixed a couple of problems caused by the Coord2D change

This is a follow-up on #735.

Fixed the MapProjection and Geotools classes.