And as I'm positive I've seen somewhere in the rules, 4 dT of goods are 4 dT of goods packed for shipping. The rules simply don't concern themselves much with the actual amount received by the receiver.As Andrew notes, and Traveller repeatedly ignores, you can't fit 4tons inside 4tons
I've long taken the road Andrew did, but I would rate that container of his as 4tons, not 3tons. It doesn't actually hold 4tons of goods for shipping (just 3tons or so), but it requires 4tons of hold for shipping and that's what's important to the free-trader Captain. Scale up for other sizes. You have to allow clearances, and loose on packing.
Also, X dT of cargo hold holds X dT of cargo. Clearances are the ship's architect's problem, not the players'.
Hans