Phylogenetic relationships and character evolution in New Zealand