This worked fine when passing in a `MutableBitSpan` to `invert`, but not when passing in a `BitVector`.