Allow the setting of the measurement unit.

Ensure that if a measurement unit is present, that the value is numeric
as we'll need to perform mathematical functions on it in the future.