scope enhancements

scope now can represent scopes of annymous functions (closures)
this allows us to get the proper socpe in case ther is
a parse error inside a closure
forgot to add these from last commit