Patch to replace for-in with for(;;)