Fix optimizer warning/error reporting.

Various tests that the optimizer spots things to warn about bombed
because of this.