traits defauts are strings not object

fix #4299