Bug 990336 - Generalize the slots barrier and use it to optimize dense-range-ref; r=jonco