I have figured out the full rules. Sometimes things pop out unharmed, sometimes they get damaged. I think the container takes the first hits until it is destroyed, and then the items are vulnerable (if they have HP). Fire barrels and other burning surfaces are definitely bad for items in them.