Add DenseCopyOf convenience function