Updated the spectrum.error_analysis user function backend to use the lib.statistics.std() function.

This simplifies the code.  It affects only the peak intensity error analysis when spectra have been
replicated.
Updated the test suite with slight changes needed due to r21025.