moving the createVariableWithMatchingUnits code into CellmlUtils, where it might get reused