Fix Block Ids

@kadst43 @AmbientOSX @eric79 @ajiraffe 

This will fix the issue with nested loops sometimes causing blockly to break and not reopen. Should go in as soon as possible.