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

Can you inline?