Fixed bugs in support for labeled indices for arrays of dimension n>2