const correctness.
Prepare for publishing parameters.

Factor out the verification and pre-calculation of parameters from
reading parameters. This second step can then be called in reinit.
Typo.