Improve error message when using DISTINCT with non-comparable types
Validate types for IN subquery expression
Throw proper exception when memory size exceeded in TopN
Verify that types of ORDER BY expressions are orderable