Add a simple packed_bits test, small fix to get_writeable_bits, put straight c++->rb translation code into store_bits