pack-objects: fix a bunch of silliness

Mixing function from http://burtleburtle.net/bob/hash/integer.html