match-trees: simplify score_trees() using tree_entry()