Handle more data-types in min() and max() that take optional arguments.