Fix 'compare' bug when formatting mismatch message for dict with tuple keys