allow required param with predefined set of values to be nil,
fixed #635