a couple signed/size issue cleanups in Stream code to silence warnings