Use typeOf instead of typeRep in Generics tinplate