Array, sequence, packet_context and event header serialization support

Packet and content sizes are now automatically updated in-place in the trace

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>