validate object types in containers