Iterate over removed and deleted records when adding record to group
In Javascript for...in iterate over properties but we want to iterate over values with for...of. Otherwise record added back is not un-removed or un-deleted.
Closes #12663 (closed)