when I did it the containers were 100% full.
Ejecting ammo out of a magazine in the same situation (on ground, 100% full container) made the ammo appear in the vicinity as it should.
With free slots in the container and emptying a magazine while it is on the ground, the ammo did not appear until I put the container back on my body.