Fix some 16-bit int issues in the multistream API.