update attribute to handle factors
fix attribute detection of measurementScale
was treating everything as character, because, for instance, class(numeric()) is a character (i.e. equals the string 'numeric')..
added missing attribute coercions
still troubleshooting factor scale
Date as possible dateTime class
factors need to become characters when writing into codDefinition definition slot
passing all checks