SERVER-7557 One obj key being $ref or $id shouldn't make the whole obj okForStorage.

I added a test for this and confirmed that `./test` passes.

Original bug was added in https://github.com/mongodb/mongo/commit/c9ed60974d3a795a25353f3790d6af6093bfad3d