Revert "add support for nested scopes"

This reverts commit 17dddd7dc1fe3119e3d3c7315be0066acb19e14b.
differentiate local and non-local references for later lambda-lifting
stub for lambda_lift()