Bugfix for reference counting bug from last commit
Adde printTree() output to debugging / Data pane