code: function Dict_get(key1, key2, key3) {
        var value;
        var xref = this.xref;
        if (typeof (value = this.map[key1]) !== 'undefined' || key1 in this.map ||
            typeof key2 === 'undefined') {
          return xref ? xref.fetchIfRef(value) : value;
        }
        if (typeof (value = this.map[key2]) !== 'undefined' || key2 in this.map ||
            typeof key3 === 'undefined') {
          return xref ? xref.fetchIfRef(value) : value;
        }
        value = this.map[key3] || null;
        return xref ? xref.fetchIfRef(value) : value;
      }
docs: automatically dereferences Ref objects