Move mapAccumL and mapAccumR out of internal/.
Fix spacing between [] in the comments.
Fix reference to foldr in mapAccumR instead of mapAccumL.
Make examples for mapAccumL match mapAccumR.
User add instead of R.add in tests.

Reviewed by @tolmasky.