Introduce Row-Major/Column-Major matrix iterators
Fix compile errors in tests