typeRep -> typeOf for ghc-7.6.