HHH-8022 - Reading REF CURSOR

Patch and test for HHH-8022 JIRA ticket.
Link: https://hibernate.onjira.com/browse/HHH-8022

Regards,
Lukasz Antoniak