On the diagonalization of holomorphic matrix functions of several variables