Bug fixes for the pack_structs() method.
Authored by: bugman 2009-01-14
Parent: [r8441]
Child: [r8443]