The function BIS_fnc_saveInventory does not save the magazines ammo count.
And the associated function BIS_fnc_loadInventory does not set the magazines ammo count.
Currently, we have no easy BIS' function/command to duplicate accurately a unit loadout.