Ensure container ID refs are written into items

Delay translation and writing of items/series with containers until
the container ID has been set on the content.