NH-3251: Fixed more test failures due to the root promotion bug.
NH-3251: Fixed not implemented exception relating to HQL parsing.