add: type_to_string functions