Fix JDBC-all build to exclude conflicting dependencies.
Fix regressions in AggrTypes.