Add support for setting transfer parameters of several variables simultaneously.

Also clean up and optimize the parallel particle propagator example.