Handling of duplicate fields in Trait.xtend and trying typeDefs.