code: function mapDimensionValueIdsToKeyValues(item, loadedDimensions, ids) {
    var result = [];
    var shownDimensions = getShownDimensions(
      item,
      loadedDimensions,
      item._fullDimensions
    );
    var shownDimensionIds = shownDimensions.map(function(dimension) {
      return dimension.id;
    });
    for (
      var dimensionIndex = 0;
      dimensionIndex < loadedDimensions.length;
      dimensionIndex++
    ) {
      var outputDimension = loadedDimensions[dimensionIndex];
      var i = shownDimensionIds.indexOf(outputDimension.id);
      if (i >= 0) {
        result.push(ids[i]);
      } else if (item._suppressedIds.indexOf(outputDimension.id) >= 0) {
        result.push(undefined);
      } else {
        result.push(outputDimension.values[0].id);
      }
    }
    return result;
  }
docs: Eg. ids = ['GDP', 'METHOD-B']. We want to map this to an array of ids, eg. ['GDP, 'METHOD-B', undefined, 'LGA', 'A'] for SUBJECT, METHOD, REGION, REGIONTYPE, FREQUENCY (for example), with undefined for any suppressed dimensions and values[0] for all single-valued dimensions. This can then easily be turned into a colon-separated key.