The following examples demonstrate the problems:
(%i1) display2d:false$ derivabbrev: true$ load(itensor)$
(%i4) idiff(A([],[])*exp(i),i);
(%o4) %e^i*A([],[],i)+A([],[])*i*%e^i*(%e^-1*0)
(%i5) ev(%);
(%o5) %e^i*A([],[],i)
(%i6) idiff(A([],[])*exp(j),i);
(%o6) %e^j*A([],[],i)+A([],[])*j*%e^j*(%e^-1*0)
(%i7) ev(%);
(%o7) %e^j*A([],[],i)
(%i8) idiff(i,i);
(%o8) 1
Expected behavior: the null terms in %o4 and %o6 should be simplified, and %o8 should be zero since i as an independent variable is not related to the i-th coordinate index. (Thanks to R. Gobeli.)
Resolved by commit 0598abb6d:
(inherited code from comm.lisp brought undesired behavior)
(NB: Indexed expressions should not appear as function arguments or as
arguments in exponential expressions)