resolver: take ownership of resolved attributes

The resolution context frees resolved attributes when destroyed.  Take ownership of attributes we return to the caller.
Take ownership of resolved attributes returned to caller