Fix for UpperCaseConstant issue related to traits and visibility

[Sort-of reported here](http://pear.php.net/bugs/bug.php?id=19957)