Concatenate a readable stream's data into a single array.