Snd 23.5

s7: various small bugs and optimizations.

checked: sbcl 2.3.5|6

Thanks!: Anders Vinjar, Todd Ingalls, johnm, Kjetil Matheussen
