Get keepReversed working.

Also, fix capturing to use array instead of Map for time being.
Tweak keepReversed.