Cleanups and preliminaries around the parser

While rummaging about, take the opportunity to silence several warnings.