Simplify _.*RightWhile loops
Merge pull request #595 from megawac/while-simp

Simplify _.*RightWhile loops.