Correct errors in serialisation of tuple constraints.