Fix for filtering by Class attribute

The super classes has a "class" property which can be queried in criteria using the full class name (String). Custom Class properties needs to be passed as Class types.

Documentation also doesn't specify that the supper class "class" property could be filtered only if table-per-hierarchy hibernate mapping is used... Could you include that? :-)