Fix -Wall warnings.

It's easy to miss new warnings when there's already 200+ of them in a single file. This patch makes Syntax.hs build cleanly with -Wall. Almost all warnings were either unused or shadowed variables.

I made the least invasive change to remove the warning, and aligned columns within the group of statements if that was a local change that wouldn't alter the current blame too much.