Fix bug where comparing/checking lead to a segfault for dynamic-sized
matrices with at least one dimension being zero.
Merge pull request #26 from schneith/fix/zero_sized_dynamic_mats

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