Draft variable reference scope check
Link var to decl and handle undeclared variables
Handle variable re-declarations with error
Merge branch 'feature/scope_check'
Add function parameters to function scope
Fix decl check(avoid segfault) on has_name scope loop
Update specs - fix declarations
update specs