Convert x.classinfo to typeid(x)
Merge pull request #1700 from yebblies/classinfo_typeid

Convert x.classinfo to typeid(x)