Fix the bug in BasicDBObject.toDBObject() to convert private members only to BasicDBObject