I'm confident that's exactly what happened, because Jack Black doesn't play characters, he plays Jack Black. This has always been the case, even in his early roles (Kung Fu Panda, Schoolhouse Rock, Nacho Libre, etc.), but the reason it works in those movies is because those are original films...