Add scope stack for tracking symbols
Make unexpected ParseError in tests more verbose
Fix scope stack