Fix value_with_units to return integer. [ci skip]