Fix more -Wall warnings.

Same strategy as last time: do the least invasive change that fixes the problem. Added `lexWhile_` to avoid statements on the form `_ <- lexWhile p` in a lot of lines. Also removed some unused parameters and other cleanups based on the warnings.