save palette from tpt++ (basically makes fix_type obsolete), fix fix_type to apply to all the elements it should