struct: Standardize on pack() and unpack().

And now structs can be nested.