lib/tree: remove root_addr param from tree_search_r
lib/tree: fix search direction in tree_search_r
lib/tree: show node count in tree_graph_r
lib/tree: clarify comment
lib/tree: recursively update in branch_ref_update