Added support for array of promises passed to deferred()