Refactor to remove any notion of Nodes.
Add #to_tree method to Array, Hash, and Object for easier tree construction.