Ensure proper @type is generated for dynamic struct