mongodb/mongo — pull request #320 by glasser (2012-10-24 17:55:16+00:00)
Title: 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