Fixed a bug in the packet generator.
The bug made the packet generator write header properties inside inner structs.
Fixed another bug in the packet generator.
This bug caused the generator to write overriding Serialize and Deserialize methods in inner structs.