Some improvements to join_collection

Which induces a behavior change in singlefilestorage, as now
join_collection wouldn't write a wrapper if no items are given