Added toArray on ParentNode to more easily view tree structure