updated StreamSource.pipe to pipe to any stream that has the correct
input type, and any output type.