Optional fix up function.

Allow an optional fix up function invoked as each element is visited.

Closes #10.