Add support for domain objects that are in a hierarchy where some parents are generic types.
Merge pull request #7 from ryanwalls/master

Add support for generic hierarchies in domain classes - Fix for issue #6