Make bit_vector safer.

This request fixes https://github.com/jubatus/jubatus/issues/462 partially.
Is `const_cast` necessary?