stream.js reduce and stream.fromArray