Fix reading multidimensional sets.