Added support for client side serialization and deserialization of Tuple (quite hacky for now :/).