Add support for Promise<?>[] waitFor