Vip restricted commands check fixes

Couple of simple fixes for VIPRestrictedCommands[Check|Test], required for the migration to PHP-Parser.
It took me a long time to realize this long block of code meant simply “for each class, add all occurrences of `/\s+($class_name)+\s?\(+/msiU` as errors”. Do you think we can make it easier to parse by humans?