Philippe Coutinho scored one and assisted another as Bayern Munich seized top spot with a hard-fought 3-2 win at promoted Paderborn.