Replaced for loops by while loops on constraint solver inner loop.
Replaced for loops by while loops on constraint solver inner loop.

MichaelRiss/nphysics,BenBergman/nphysics,tempbottle/nphysics,tempbottle/nphysics,sebcrozet/nphysics,sebcrozet/nphysics