Investigate integer overflows in the scheduler
When we have large counts in a cell code sections that include ci->count * ci->count
and ci->count * cj-count can potentially overflow. Check that this is not happening.
See merge request !176 (merged).