traits defauts are strings not object

fix #4299
Merge pull request #4300 from Carreau/fix-4299

Traits defauts should be strings not object