analyser: added Scope flags

This allow checking of whether a break/continue statement is allowed.