[DF-1785] Fixed custom palette serialization