ensure method(obj, key) can't mutate the loop.