GetUnitWeaponTarget: make sure returned number of args is always 3 if type != none