Minor optimizations in type-alias-helper
Simplify construction/matching on Name types
Remove dependency field from Name types

This was used for the old method of generating contracts
for these types but is no longer necessary.