Fix saving palettes in folderstorages.
Now we still need to puzzle out memory storages, and how to deal with duplicate file names.