Experimental support for non-ObjectId DBObject id.
Additional changes for experimental support for non-ObjectId DBObject id.