Advanced record as member of a static array not initialized properly

Summary

Similar issue as #40199: advanced records are not initialised (but finalised!) when they are members of a static array

System Information

All, I believe. Win32, Win64, Ubuntu. FPC3.2.2 and newer including trunk.

Steps to reproduce

Run the example. It will show 7x finalisation but only 1x initalisation.

Example Project

bug_advrecord.pas