Change prod into any.
Add scale_tree to generic functions.
re-write enumerate_tips_under_edges.