Add modifiers to domain-definer and validate them

#Fix 52, 53