Fix a bug in GeodeticDatum and clean a few other classes.