code: function getDotValues (doc, fields) {
    var field, key, i, len;
  
    if (util.isArray(fields)) {
      key = {};
      for (i = 0, len = fields.length; i < len; i++) {
        field = fields[i];
        key[field] = document.getDotValue(doc, field);
      }
      return key;
    } else {
      return document.getDotValue(doc, fields);
    }
  }
docs: Get dot values for either a bunch of fields or just one.