Add support for struct slices to/from bytes.