isolated a bug with LU matrices
fix a bug related to copying of dense matrices