Right now, addding the current weapon of a unit to cargo or WeaponHolder through scripting commands is impossible to do right, as there is no way of specifying the correct attachments, magazines and bullet counts for weapons stored on cargo.
For players this has been taken care of in the following issue by @japapatramtara http://feedback.arma3.com/view.php?id=21469