add a missing bitarray bounds check. for #2495
some scalar cases are still missing bounds checks, and we have enough
bitarray performance trouble as it is. we will need the ability to force
inlining before it becomes practical to fix.