Fix both repositories and folders adding children. Did this by creating a callback function, re-reversing the result of this.tree.nodes(..., and appending to the correct children array when adding folders (Instead of just appending to the root's children