Tag exported types in traits.

    We used to fail because not all types were exported from a trait.