More informative error message on name collisions

This is the proposed fix for #2506. It provides a more complete message
with regards to name collisions including informing of the opposing
containers ID.