Hack to prevent engine from creating self-references
There seems to be a bug when collapsing docs containging circular refs
that makes engine to try to create a self-reference which ends trying to
insert an invalid doc and raise an exception from MongoDB driver.

I can't fully understand how why is happening nor since when it occurs,
so this patch just skip it and make all tests to pass.