[OPTIQ-309] WITH ... ORDER BY query gives AssertionError
More tests for WITH ... ORDER BY.