fix compile time errors in tensorContraction