Update to keep jd1,jd2 as arrays, check/set is_scalar, and also slice
the two _delta's