[MONDRIAN-1254] Modified to check the hierarchies in the tuple rather than dimensions, since multiple hierarchies can be included.