Get regression test TestUseUndeclaredVariable() functional again, though not yet enabled.

This reveals the position map problems and will make the fix (and subsequent continual checking) easier.