Fix wrong chain mode iterator result for singular dimensions in hypercubic 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)].
Merge pull request #40 from raoulbq/chain_iterator_fix

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