Define Record methods using RTTI

Add feature to function DefineRecordByRTTI to define also record methods, also convert the procedure DefineRecordByRTTI to a function that can return a TatClass reference to the new defined record

This feature was implemented.