Template using UDT param: Can you access UDT tag metadata?

Probably also want to ditch your use of the tag() expression function.