Fix Promise.sequence

Remove use of upper-bounded wildcard types in Promise.sequence, as it's currently not usable from Java.

See #1595.