Remove setToMaximize from Assignment.  It was only there for when Assignment inherited from Marginal.
Not all Var are required to have a "domain" method.  New trait VarWithDomain.