Added a reader for mongodb object types.
Also a short unit test.