Add `std.traits.isNestedFunction`.

As I see no cases where nestidness check for both types and functions is required a new `isNestedFunction` template is created instead if adding an overload to `isNested`.
Merge pull request #1220 from denis-sh/add-trait-fron-nested-function-check

Add `std.traits.isNestedFunction`.