Fixed #14334 -- Query comparision now check for object types.

Comment that you test for an iterable of models here.