LowercaseConstantsFixer - rewrite to handle new test cases

LowercaseConstantsFixer - rewrite to handle new test cases.
Resolves #793.

May not work on php 5.3 yet
Besides the fact that the implementation might be buggy and that it will slow everything else a bit for an exceptional case, I see no problem.