code: function (args) {
      var i, val, akey, result = {};
      Object.keys(args).forEach(function (key) {
          val = args[key];
          if (Array.isArray(val)) {
              for (i = 0; i < val.length; i++) {
                  akey = key + '[' + i + ']';
                  result[akey] = val[i];
              }
          }
          else {
              result[key] = val;
          }
      });
      return result;
  }
docs: // private helper functions ////