MONDRIAN-1434 - Restrictions on the measures dimension applied to measures on all cubes and not just the cube it was specified for.  Corrected by retrieving the dimension grants using identity compare instead of equality.
(cherry-picked from ed59e8a)