Added support for PLC in copy_elements and copy_element_handles