First pass at unifying units and quantities.
Added missing fixity declaration.
Converted all the basic modules to the named-units system.