Fix a bug when packing structures that include the packed size.

refs #1104
Merge pull request #1119 from wiredtiger/packed-size-adjust

Fix a bug when packing structures that include the packed size.