Can you make TEnum derive from TNamed (also update #include in line 24)? That way it can have its name as the name part of TNamed, and we can (later) add a title.