Debugging pass on sed: make the existing test suite pass.
More sed bugfixes. (Did you know s/[/]// is a valid sed expression?)