expose OutputStream::ReadAllFromStream to scripts