Changed getDimensionName to 100% rely on the dimArray