[backend] tweak list2struct so that it clears all old attributes

This should be in line with the user's expectations.