Dominic Thiem beat Milos Raonic 7-6 5-7 6-4 in the second round of the Paris Masters to extend his winning streak to six matches.