Adds units and domains to numeric variables, where appropriate