Issue 12668 -  std.traits.functionAttributes should use the new getFunctionAttributes trait.

https://issues.dlang.org/show_bug.cgi?id=12668

This requires https://github.com/D-Programming-Language/dmd/pull/3506 before it will pass the autotester.