Fix row-major/col-major problem in appendMatrixTo

The plugin works if the problem has no constraints
Fix add constraints
Add tests