Added scope checks for break and continue statements.