Enable warning 32 "Unused value declaration"

Remove some more dead code.
Enable all warnings, most as errors, and fix errors