Fixed equality testing of tuples to include special cases