The documentation on this seems to be perennially confusing / lacking
- this is something we really need to clean up. New style DBRefs (see http://www.mongodb.org/display/DOCS/DB+Ref+Specification)
do support _id's of any type. In fact these DBRefs are really just
documents with special reserved key names.
Old style DBRefs (as documented on the BSON page) only support
ObjectID - that is why they're deprecated.
To further confuse the issue, what the driver is actually doing when
you create a DBRef instance seems to be different across the drivers
right now - some create new style, some old style.
So to answer your question - use new style DBRefs - they work
everywhere and support _id of any type. We'll work on the docs.