Foundations for build_tree_postorder() in place.