Hibernate 4 proxy unwrapper and support for multiple sorters

Enables proxy unwrapping when using Hibernate 4 plugin.
Added support for multiple sorters and some tests for this.