Fix previous commit:

- Compare the *last* byte not first.
- Check for zero length bit-vector.
Add bit-vector equality tests.