Fixed #21846 -- Made NestedObjects handle related_name with %(app_label)s or %(class)s.
Allow custom querysets when prefetching through SingleRelatedObjectDescriptor
and ReverseSingleRelatedObjectDescriptor.

Allowing it enables calling performance oriented queryset methods
like select_related when prefetching through single related objects.

Refs #17001.