Improve error message when using DISTINCT with non-comparable types