Fix TypesAreEqual for obscure types. Resolves some mscorlib translation issues.