Compare symbols rather than Vars

This is more of a code cleanup issue than fixing a bug.  In the
previous commit, I found a case where comparing Vars caused
differences in linting output, and I am wary of that happening again.