Treat properly typedefs. Fix ROOT-5764