avoid using `std::accumulate`
vtkCompositeDataSet::GetNumberOfElements
was causing segfaults when
called on CTH AMR on MSVC. The std::accumulate
implementation was
causing invalid access when copying state for the internals used by
CompositeDataSetRange
. Avoiding it.
Adding some asserts to catch such issues sooner.
Topic-rename: vtkCompositeDataSet-avoid-std-accumulate-over-vtkCompositeDataSetRange