Use `__traits(isNested, T)` in `unstd.traits.isNested`.

This adds support for checking nested classes and simplifies implementation.