Copy the dynamic flags (in unloaded state) when cloning flags.
This bug seems to be one of the reason why several of our unit tests are calling loadAllDynamicFlags.
loadAllDynamicFlags
Adding CA experts @tbold @wlampl @tadej.