Fix the copy of FITS header to respect the initial order of keywords
Ref #510. With the previous implementation BLANK keywords were all written at the end of the header, messing up headers like HST ones.
cc @guillaume.mahler - with this HST headers should be copied correctly!