Use utils.slope_array in more places
Add _speedups.is_const