type tree printing functions but need to reorganize
type_tree_to_string function