Taylor scored his 17th century as NZ edged South Africa in another tight game