automatically pick up correct value and type when creating a duplicate annotation