Handle traits inheritance
Merge pull request #8 from suiryc/fix-traits-inheritance

Handle traits inheritance