fixed 1779:Query class __str__ method should cast non string values, thanks Alan