Update treenode.py

TreeNode has type-id 0 (zero).