The code generator for the for-iterator statement contains a bug which causes a stack underflow in the virtual machine. Symptoms are sporadic crashes or error messages during model checking or simulation.
Fixed on the trunk as of rev. 1686.