Hi Wojciech,
The way I would do this is with the MathObjects MultiAnswer evaluator, which lets one group a set of answer blanks and decide how to grade them accordingly. A (hopefully good) place to start exploring this is the problem techniques documentation page: http://webwork.maa.org/wiki/MultiAnswerProblems .
Gavin