Bayern Munich moved on from their shock DFB Pokal loss to second-tier Holsten Kiel by edging a close encounter with Freiburg in the Bundesliga.