adding support for copy_to an array of items