Visiting Philippine President Rodrigo Duterte has praise for China, setting aside a maritime dispute as the combative leader reconfigures his country's diplomatic alliances.