Fix Issue 12668 -  std.traits.functionAttributes should use the new
getFunctionAttributes trait.
Merge pull request #2131 from AndrejMitrovic/Fix12668

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