Implemented constructors and destructors for RTTI objects.