Fix possible crash when removing observations on foreign object.

I was mutating enumerated set, so now I create a copy of it.