Simplify TableGen type-compatibility checks.

Patch by Elior Malul!