Subtle bug sweeping class instances in containers.