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

don't need a trailing comma for lists with a single element (only needed for tuples)