Fix for bug introduced in #155 (dividing numbers of the same unit type)

When a number was held in a variable, the unit would be missing on its next use.