When looking for a representative superclass constraint, take into account other same-type constraints by comparing against the resolved superclass constraint type rather than the type as spelled. Fixes SR-8179 / rdar://problem/41851224.