Generic runtime-dispatch argmax kernel.
Returns the first maximum, or None for empty or NaN-containing slices.
None