wrap-rewrites

I couldn't figure out your test files within five seconds of looking at them, so I played around in the repl instead of writing a test.