Fix StyleCop warnings in Editor, Renderer.Sdl2, Utility, Test

You should use `var` according to https://github.com/OpenRA/OpenRA/wiki/Coding-Standard. As this does not get re-used anywhere you may just want to skip storing this into a local variable.