Detect use of flow control statements outside of a loop - Closes #603