Issue 11047 - UDA + getAttributes bypass purity/safety check

https://issues.dlang.org/show_bug.cgi?id=11047

All value elements in UDAs should be evaluated in compile time.