Fix bug in optimizer test suite nlpqlp (for loop limit was too big).

This was detected by gcc's aggressive loop optimization when it tried to unroll the loop and found itself off the end of an array. This fixes issue #128 reported by @scpeters.