Leon Goretzka celebrated his long-awaited comeback with the opening goal as Bundesliga leaders Bayern Munich won 4-1 away to top-four candidates Freiburg.