When using .def() along with oneOfType it throws an error if the default value is not of the first type defined in oneOfType.
Example:
works (string before number):
w: oneOfType([string(), number()]).def('auto')
does not work (number before string):
w: oneOfType([number(), string()]).def('auto')
Error:
