Handle optional options arg in readStream and writeStream properly