Add allow_nil option

Sometimes it's handy to have a nullable enum field.