implemented list of arrays and dict of arrays in fits.write