ivy: make 3d matrices look nicer

Make all fields line up. Previously each 2d submatrix
was printed separately, leading to ugly layouts.