fix: improve `typeOccursCheck`

This commit addresses a Mathlib failure.
2 files changed