Replace common TR_OBJECT_HEADER with TrObject inheritance