Add a slightly modified version of Gilles test for the
irregular packing/unpacking of datatypes.