Modified oneOf to handle arguments as arrays of items and options.