Add 'set' to serializable types in Query.as_dict

Sets were missing from serializable types - added by this commit.