Add visit methods for tree traversal and patch parents onto all nodes, this will aid the compiler