Fix CB tree traversal and dumpping methods