The main issue was the fact that if a Scene is overridden, it's content will be fully invalidated when updating the liboverride at the end of the file reading process. Since the FileData keeps a pointer to the active view layer, it needs to be udated then. As a side consequence, the liblinking of global data also needs to happen before liboverrides are updated.