SFTPStream: avoid conflicting variable names
test: fix error messages
SSH2Stream: fix syntax
lib: more packet data checking