Duplicate variants when duplicating products.

Cherry-pick of 69f785d732e2f7a3ad129095044413a58a97e32f

Fixes #4339