Snd 24.1

More optimizations, minor bug fixes, and rewrites.

checked: sbcl 2.4.1

Thanks!: Norman Gray, Andreas Enge

