code: function resolveSelector(selector, opts) {
    var resultArr = [];
    resolveSelectorHelper(selector, opts, resultArr);
    return newVector(resultArr, 'number');
  }
docs: Resolve a selector to a vector of integer indices using the 'opts' object