matrix: fix identity construction calls
matrix: fix inversion compilation