fix bit packing encoding bug

with 174767 values (3 bit wide) we go over the slab size of 64K