traits: allow using traits outside source [closes #234]
traits: add tests for #234
instanceof fix
Merge pull request #380 from apigen/trait-outside

Allow traits not added to the source [#234]