eliminate loop helper variables
better erroring in SDL_Delay; issue #1255
track number of uses properly for loop variable removal
Make lrint more correct. Closes #1265.
add missing return values in safeRequestAnimationFrame,safeSetTimeout,safeSetInterval
handle empty loops in new loop optimizations; fixes #1270
optimize multiple loop variables together