HHH-8850 - fixed ex. when calling addScalar to NamedSQLQuery

changed list instanciation from java.util.Arrays.ArrayList to
java.util.ArrayList when creating SQLQueryImpl from an
NamedSQLQueryDefinition.

added testcase