MongoDB: Adding support for db.Constrainer and db.IDSetter.