Serialise matrices as tuples instead of arrays …
It makes the deserialisation simpler because we can move out from a tuple, contrary to an array.