Fix bug in moveForwardUntilEvaluated() when called with a Stmt that contained
a function call, where movement would stop after the function was entered.