avoid array copy unless necessary, to improve performance
mark InputStream.read as blocking
Merge pull request #2036 from kruckenb/master

In Enumerator.fromStream, avoid copying input array where possible.