Fixed tuple serialization test.

Thanks to rockallite for the report.