If that sort of bad Declaration-Call has spreaded into other code areas...
From LINE #937...
[XComeGame.Pistol_BM X2WeaponTemplate]
[Pistol_BM X2WeaponTemplate]
FriendlyName="Beam Pistol"
.. it's possibly creating troubles for some Pistol-related script functions, maybe?