Added type-code checking for the standard container objects.