Prepare internal memory layout for publishing parameters.
Undo memory layout change for publishing parameters.

This incurs a slowdown, which in limited benchmarking can be 5%.
Instead store parameters twice and copy on reinit().  This increases
memory usage but does not slow the calculation down.
Publish parameters.

Parameters are now published.  This is untested right now.