correct type errors in affectationEngine due to replacement of Option[BSONId] by BSONId in affectation