Add val_type to ToCountMap, fix div computation in get_simple_strides, consider assumptions in precompute See merge request !109