Cody Gakpo scored twice from the spot, including a last-kick penalty, as his side edged Uzbekistan 2-1 in a World Cup warm-up.