Include subclasses in custom views

Fixed: fetching different classes with the same view (think `Model.all` view definition that emits a key that's the same in the superclass and all its subclasses) is now possible.

See the added unit test for an example of what accomplishes.