Fix issues with labels in generators

- All named break and continue statements need to be transformed into a state machine
- The way that labels where propagated down was not correct

Fixes #605