To fix #441 (duplicated variants after generations)

The fix is simple, but the problem was a bit tricky to find.

@pjedrzejewski can (or should) we handle here custom validation groups ?