Increase max precision and scale for numeric data to be 38

Fix import ordering
Fixes for pushing filter past CorrelatorRel
Backport of [OPTIQ-309] WITH ... ORDER BY query gives AssertionError