Added infrastructure for having local variables in scopes.

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