Fix procedural finfo calls in methods

getThis() will return the $this of the calling method.
Fix array_keys() on $GLOBALS