Rename map_with_location user function params
Remove accum_fn references.

Update test_scan and swaption example (all the accum_fn parameters were
set to ``None``).