Fix off by one error in loop magic

A severe bug, it would read from stdin even if one element
argument were provided.
Perform escaping in map [fixes #3]
Fix whitespace
Add tests [#1]

The tests are passing, but the bug "manual folda" bug occurs
occasionally anyway when I test by hand.