whoops, only pack ints this way
Add a test for type_pad

...and fix a bug it exposed :-)