removeDanglingReferences
Remove all dangling references in the cache. A field is a dangling reference if its value (or, for lists, any of its values) is a reference to a record that does not exist.
When all fields of a record are dangling references, the record itself is removed.
This operation can result in unreachable records.
Return
the fields and records that were removed.
Remove all dangling references in the store.