Use uint instead of size_t when array's length is not specified
Use serialize/deserialize method on struct and classes if there's one
Add support for tuples
Fix missing import
Add deserialisation and tests