Fixed bug in dimensions checking
git-svn-id: https://www.tol-project.org/svn/tolp/trunk@1844 be4846ae-f051-483a-831f-b64e7d08527f