IMPROVEMENT Adding trait support for manifest builder

Backward compatibility to PHP 5.3.x is given by checking T_TRAIT constant.