Reattached debug output
Generalized lambda body generation (fixes declarations not applying)