Check exact storage for Dimension table in Cube Select Queries

Modify haspartition() to check partition in resolved storage table instead of relying on dimStorageTableToWhereClause