Add tuple serialization support