Include tab color when duplicating tab.

Fixes #2029