Generalize IndexSamplingJobQueue

- fix pollAll semantics to return values wrt insertion order