Fix treeNodeImpl class specialization problem