fix wrong reject reason in Deferred.when
pass index of rejected promise in Deferred.when
add Deferred.any
fix error in Deferred.when