Fix for pr1833776.
Fix for pr1833776.

This patch fixes a bug which caused a generate loop with a non-zero
initial value to generate the wrong number of block instances.

themperek/iverilog,CastMi/iverilog,CastMi/iverilog,themperek/iverilog,themperek/iverilog,CastMi/iverilog