Simplify TableGen type-compatibility checks.