core/array: provide a better implementation of `copy_to` (not native yet)