SCP: Tweaks

See the commit message for details.

I'm trying a pull request for this per https://github.com/phpseclib/phpseclib/commit/fcfc0e2c008fc4bdaa0f431252afe523de855c02#commitcomment-4664111 although I am quite skeptical.