Enable max and min for non-numbers but comparable types.

Same as above