fix incorrect spec2d output
wavelength solution is only saved for spec.fits and spec2d.fits