Fix a few edge cases for raco pkg new

Also fix typos/indentation
Add tests for two closed TR PRs
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.