type: improve type_to_str() to handle SYM_NODE