try to fix packing on different bit widths
a few more masks for 32bits
Merge branch 'packing-32-bit'