Implement __traits() parsing

I know it looks strange but traits are strange :)