dim is now copied over when it is found in mnigrid instead of grid.

the fix 2548 is supposed to copy over the dim field only when it existed. the submitted solution is flawed in that it never copies over the dim field, even if it existed in the mnigrid structure. the proposed patch solves the issue.