Issue #6431: Fix Fraction comparisons with unknown types, and with