Added tests for double-pickling a QuerySet

Refs #21102.