bitarray: performance enhancements (fix #2360)

Improve performance of convert to BitArray (and therefore
of bitpack) and of element-wise operations (e.g. `.<`, `.^` etc.)
bitarray: avoid some unnecessary bound checks
bitarray: rename assign_* to setindex_*

(only internal functions, so this is just cosmetic)