I like the theory that Bran goes back to warn The Mad King of the army of the dead which drives him crazy. When he was screaming "burn them all", he was in fact talking about the white walkers, unknowingly to Jaime. Also explains him building his collection of wild fire.