Fixed some of the tree-node functions.

Still having issues with find-range-in-tree./