Added recognition of lexical closing of parameter/variable lookup in
compilation logic.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>