More test work for consdiff
Add calc_changes test
Fix bug in trim_slices where we could do reads out of place