Fix false-positives when detecting ambiguous rules.