Dual domestications and origin of traits in grapevine evolution