Fixed comparison for tuples and union types.