Fix test breakage from previous state fix
Fixed #22349 -- Added a note clarifying `RawQuerySet` has no `__len__`.

Thanks cdestigter for the report.
Fixed #14334 -- Query relation lookups now check object types.

Thanks rpbarlow for suggestion.

Thanks loic, akaariai and jorgecarleitao for review.