Harry Kane and Eric Dier set new records as Bayern Munich secured a win over Freiburg in the Bundesliga.