For Ed Miliband this was like being beaten up by a Bertie Wooster figure who turns out to be both clever and brutal.