Unlisted bug fix: correct sc->pop() timing
[Refactoring] Improve code flow for error handling
[Refactoring] Remove ScopeStatement that is hard to notice

Conflicts:
	src/expression.c
[Refactoring] Increase locality of variables
fix Issue 13787 - Error without line number when slicing function pointer
Merge pull request #4181 from 9rnsr/fix13787

Issue 13787 - Error without line number when slicing function pointer