Fixed small bug in parseArrayToStream.