Fix unit structs in cross-crate situtations

This involved defining the name in the `ValueNS` as well as the `TypeNS` if there were 0 variants.

r? @pcwalton (or others who are more familiar with resolve than I)

Closes #7634