Factorize type name equality checks in CheckIO.
Merge pull request #325 from simartin/checkio_types_match_factorize

Factorize type name equality checks in CheckIO