MDL-43089 Fix a whole bunch of codechecker issues.

Still plenty more to go.