[bugfix] Fixed error in initialization of cartdims during non-UG constructor.
[bugfix] Fixed imcrementing the cell centroid.

Imcrementation should be done at the end of the loop body as otherwise
the first cell is skipped and we are out of bounds for the last iteration.
This patch move the increment to the correct location.