Base object subtyping on the inheritance hierarchy
Merge pull request #23 from fracek/pointer-subtyping

Base object subtyping on the inheritance hierarchy