Fix bug where comparing/checking lead to a segfault for dynamic-sized

matrices with at least one dimension being zero.
ok, the initial text was written to resemble the gtest-output.