Actually, an additional `const` in the constructor of `DenseMatrix` solved the problem. I made a commit with the changes.