Promise.all() fails on empty array

The implementation used to expect an array of at least one `Promise.for`-able value. Special case is made for an empty array, which should just resolve.

Same fix for Promise.race() applies.