#44 Further encapsulation of TreeNodeRef