Stacking: metadata only copied in result in case of FITS sequence
At the end of stacking, we copy FITS metadata from the reference image to the resulting FITS. This is only done when the input sequence is a sequence of FITS files, not when it's a FITS cube.
Maybe some of the SER metadata can be copied too by the way, like observer, instrument, telescope and dates.