fn generate_subscripts_array(
    a: Datum<'_>,
    dim: i32
) -> Result<Box<dyn Iterator<Item = (Row, Diff)>>, EvalError>