fix subtyping by name
Merge pull request #19 from haarg/subtype-by-name-fix

fix subtyping by name