Bind the iteration variable only if it is not NIL.
Declare the type of the iteration variable only if it is not NIL.
In the step form, assign to the iteration variable only if it is not NIL.