Add as_node_vector method, with tests, to RateTree.