void fix_tree()
Fix all parent pointers recursively in a tree that has been built with tmp_add_child .