Extend core classes with to_measurement and to_unit, and bump version to 1.2.0.