fix typeid method registration.