updated t_dump to be based on a Defs structure so it can handle printing out all parts of semantic trees