New No. 1 Andy Murray rallied to beat Kei Nishikori in three hours at the year-end championships, winning his 21st straight match in the process.