Documented type deduction for ADAPT_STRUCT_NAMED.
Fix the unit test of adapt_struct for consistency with other tests of the same kind.