Fix an error in how 'gridrank' keys are set.
Fix an error in how 'gridrank' keys are set.

The error was that 'rank' was being used instead of the proper index of 'cart_rank' for each dimension.
enthought/distarray,RaoUmer/distarray,RaoUmer/distarray,enthought/distarray