Fix Promise.all extern to accept an array of Promises

Fixes #687