Rework BitVector_Next_Hit

- Avoid overflow in pointer arithmetic.
- Fix conversion warnings.
- Relax int32_t range check.
- Simplify.
- Fix and add test.
2 files changed