constructor(tree, dict) {
    this.tree = tree;
    this.xref = tree.xref;
    this.dict = dict;
    this.kids = [];
    this.parseKids();
  }
Instead of loading the whole tree we load just the page's relevant structure
elements, which means we need a wrapper structure to represent the tree.