The 'ape' class phylo
is not formally defined, but expects trees' internal
representation to conform to certain principles: for example, nodes should
be numbered sequentially, with values increasing away from the root.
Renumber()
attempts to reformat any tree into a representation that will
not cause 'ape' functions to produce unwanted results or to crash R.