This isnt exactly a bug but its something that should be fixed.
This line;
"<flags count_in_cargo="1" count_in_hoarder="1" count_in_map="1" count_in_player="0" crafted="0" deloot="0"/>"
It is really a problem, the result of this is that dupers have tons and tons of m4's and ka's while making it literally impossible for m4's or ka's to spawn. This is for ALL rare weapons.
Either you make sure duping is gone for ever (impossible) or you disable the cap for the rare weapons and make them more rare instead. It literally removes 4 weapons from the game semi-permanently for people who are not duping.