Support passing objects to P.all and P.allResolved.