Optimize classes Quantities and Dimensionless

An important simplification...