A more informative error message when trying to create a tree with duplicate node names