Added test for object saving, also added MongoDB magic to be able to call ->as(CLASS) on find_one and Cursor->next return values