Adding trait support

Hello,

I've added some flag in ClassReflection to enhance its behavior with Trait.

This class should be refactored in 3 (class, interface and trait) but it is too complicated due to static factory "fromArray()".

Hope this helps

:sunny: