Wrapping nested types and attributes