Rewrite conversion from ES to IDL sequence values so that any iterable is convertible to a sequence.