HHH-8432 - Expanding parameters in IN clause

Patch and test for HHH-8432 JIRA ticket.
Link: https://hibernate.atlassian.net/browse/HHH-8432

Best regards,
Lukasz Antoniak