DF-2060. Fix tilemask saving on scene save