Allow giving a callback as an allowedValue to OptionsResolver