get_struct_nodes function

Extract struct names from a parsed tree root