more tests for comparison, fixed handling of dimensions in comparison, arithmetcs