added string-to-type and type-to-char functions, and moved type-related functions to SymbolData