Don't allow import of TypeData cons to mention each other
Fixes an issue where the user could import constructors promoted by
-XTypeData
with a constructor list containing other promoted cons of
the same kind. A similar issue with associated type families is also
fixed by this patch.
Fixes #23020