Fix wrong chain mode iterator result for singular dimensions in hypercub...

...ic basis shapes

Note: This bug did not cause any harm because we filtered out
      the elements that are too much later when writing the results
      of a stencil application back to M[mu(k)].