Static Analysis Cleanup

See the PR on the Parser for a full description.