Added asserts for container structure and structuralist index.