[feature] Dumper class for the TreeNode.