function toArray() {
	      return _toArray.apply(this, arguments);
	    }
Collect all remaining elements of a bounded stream into an array.
Obviously this will succeed only for small streams that fit in memory.
Useful for testing.

@returns A Promise for an array of stream elements, which will resolve
  when the stream is exhausted.