Fix turrets again

M249s in particular got broken because of losing their CARGO flag, CARGO flag collisions are a potential issue, co prevented that, and turret LOS calculation (and other things probably) had bitrotted and wasn't working properly.  Also some cleanup.
Fixes #3539