add trait element class
add trait as object so render could work
ensure that classDeps are unique
Merge branch 'master' of github.com:adam187/SourceEditor

* 'master' of github.com:adam187/SourceEditor:
  ensure that classDeps are unique
  add trait as object so render could work
Merge pull request #1 from adam187/master

Fix rendering of traits