optimizer: allow to move once_used to test position

Allow the optimizer to move the once_used expressions to test position, because the if will check that the expression returns a single value.  

This pass all the tests, but I’m still not 100% sure that this changes doesn’t create a problem with the captured continuations.