[MONDRIAN-1572] fixed an issue with more than two bridge dimensions.
Merge branch 'm2m' into evergreen