nir/serialize: try to store a diff in var data locations instead of var data