[#2139] batchStore with composite types incorrectly reuses values from
the first record.