Automated inspection fixes: Round one

Each specific "fix" is described per commit. This might reduce memory usage a tiny bit if the GC goes apeshit, but it probably won't make much of an impact, if any.

Still, it's good to see the warning count go down :)