bintree: fix traversal dispatch