NULL_to_charNA: converts a NULL to NA_character_; or returns the argument unchanged otherwise
Description
This is useful for missing list elements (which returns NULL),
but when the missing element in refClass should be NA_character_ (and NULL would return an error)