Re #7506. Checkpointing small bits of code cleanup.
Checkpointing work.  Refs #7506.
Checkpointing work.  Refs #7506.
Fixed the memory leak.  Refs #7506.

Memory leak is caused by mistakenly using ws.dataX(spectrum), which
causes a copy operatoin on vector, other than ws.readX(spectrum).
As it is not threading safe, the memory leak occurs.
Fixed the inconsistency in unit test.  Refs #7506.
Revert some change. Refs #7506_calibrate_mem_leak.
Fixed the memory leak. Refs #7506.

Memory leak is caused by mistakenly using ws.dataX(spectrum), which
causes a copy operatoin on vector, other than ws.readX(spectrum). As it
is not threading safe, the memory leak occurs.
Fixed a possible memory error.  Refs #7506.
Correct a spelling error.  Refs #7506.
Merge remote branch 'origin/feature/7506_calibrate_mem_leak'