Analyser: refactored some of the updateUnitsMap() code.
Analyser: refactored some of the updateUnitsMap() code.

nickerso/libcellml,cellml/libcellml,nickerso/libcellml,hsorby/libcellml,nickerso/libcellml,cellml/libcellml,cellml/libcellml,hsorby/libcellml,nickerso/libcellml,hsorby/libcellml,hsorby/libcellml,cellml/libcellml