code: function Dict(xref) {
      // Map should only be used internally, use functions below to access.
      this.map = Object.create(null);
      this.xref = xref;
      this.objId = null;
      this.__nonSerializable__ = nonSerializable; // disable cloning of the Dict
    }
docs: xref is optional