Improve wrapping for types and traits
fixing digest loop project with documentation.traits()