Fix variable lookup to always prefer lexical, over dynamic, bindings.