Implemented `allSettled`, which waits for all promises in the provided array to fulfill or resolve and then fulfills with an array of RXSettledResult objects.