HHH-9203 - Natural id statistics getEntries() fails with ClassCastException

Patch and tests for HHH-9203 JIRA ticket.
Link: http://opensource.atlassian.com/projects/hibernate/browse/HHH-9203

Regards,
Lukasz Antoniak