optimizer: fix `with-continuation-mark` optimization

Misuse of the function to optimize applications constrained the
body of a `with-continuation-mark` form to a single result
value.