When it resolved symbol-only variables, the expression parser currently looks only in the global module list. It should prefer the current module.
I've fixed that behavior by making it search the current module first, and only search globally if it finds nothing. I've also added a test case.