fix set_dwelltime() bug for xspress3
allow writing of 1-element MCA spectra
better set-dwelltimes