fixes for 5.18

Some tests failed on 5.17.7 because of hash randomization:

https://metacpan.org/module/DROLSKY/perl-5.17.7/pod/perl5176delta.pod#Per-process-hash-randomization

And also made tweaks for cpantester failures/warnings.