UFUNCTION with template type does not compile

I did some research and found in the past Epic said that UFUNCTION() does not support the template type.

Here is a workaround for using wildcard pins. This sounds like circumventing the header tool that you were referring to:

[Tutorial] How to accept wildcard structs in your UFUNCTIONs - Community Content, Tools and Tutorials - Unreal Engine Forums,

Also, it looks like you are able to use the template type without UFUNCTION in C++ (not blueprints):