fix: log removed keys

When a key is removed make sure we correctly remove it from the records.
view changes: handle case where the doc is deleted

With this change we also emit a changes when the doc is removed from the
view.