fixed instability in table packing/unpacking as suggested in #184