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