Modified Tree::add() to accept a title as the third parameter, or to convert arrays to objects automatically