Merge lambdasimpl, letsimpl and simplres into retvalsimpl transformation.