Bug in Oracle paging SQL generation if there is no explicit ordering

Failing tests, and description are in the first commit, and "fix" is in the second.