Fix missing connection of reftrack with scenenode

On replace, import and reference, the scenenode is not connected to the
reftrack node. This causes errors, because taskfile_id is not set.
The fix connects scenenode on import, reference and replace.