make sum(), min(), max() tolerate unstable first/rest

An humble contribution based on a what was recently done for `reduce()`, but this time for sum(), min() and max().
If this modification was not desirable please just ignore this pull request