Coverity update

I went through the pending Converity alerts, fixed a few with my
commits this morning, and marked the others as minor. I didn't see
anything severe in there, most were expected.

Robin