Fix operator< in grid_key_dx to avoid comparing different dimensions and to avoid potential infinite loop.