Add code generation for Tuple classes