Fix false warning from no-undef rule (fixes #283)

This fixes the helper function used to determine whether a given variable represents an implicit global. Previously, it would flag variable ```a``` (in the test code) as an implicit global, when it is not.