exercise on type equivalence as a congruence, close #493