code: function applyHintsToName(hintSet, name, unallowedTypes) {
    for (var i in hintSet) {
      if (hintSet[i].hint.test(name)) {
        var guess = hintSet[i].type;
        if (unallowedTypes.indexOf(guess) === -1) {
          return guess;
        }
      }
    }
  }
docs: Guesses the best variable type based on its name. Returns undefined if no guess.
  @private
  @param {Object[]} hintSet The hint set to use, eg. [{ hint: /^(.*[_ ])?(year)/i, type: VarSubType.YEAR }].
  @param {String} name The variable name, eg. 'Time (AEST)'.
  @param {VarType[]|VarSubType[]} unallowedTypes Types not to consider. Pass [] to consider all types or subtypes.
  @return {VarType|VarSubType} The variable type or subtype, eg. VarType.SCALAR.