Workaround: set the data type of the column to null before saving the layout and after loading it set it with the needed type