allow required param with predefined set of values to be nil inside optional group

fixed #635