Fix bug in leading_dimension index handling for fixed and srided array