Add mapAccumL and mapAccumR. Closes #632.

Reviewed by @tolmasky.
D'oh!  That's what I get for trying to do something more interesting while also on a conference call.  :blush: