Do not modify input array of allSettled

Fixes #336.
Fixes #338.
Merge pull request #356 from kriskowal/all-settled

Do not modify input array of allSettled