Blockly loop and timer behavior changed from 3.4 ot 4.0? Loops do not work anymore

A quick search will find similar issue and workaround: