replay: Copy dir states and external paths in copy_from operations
Copied directories might have externals so we also need to copy states and update external paths in case externals list is later modified.
Depends on !163 (closed)
Migrated from D8944 (view on Phabricator)