Fixes to fold functions and tests in Lambda.pm
Merge branch 'repl-to-functional' of github.com:henrikz/ted into repl-to-functional