adjust ErrorElement for symfony 2.5

when testing with the latest 2.5 symfony master, i got errors on this. i think it would be correct to use the interfaces rather than some concrete implementations (which happen to be replaced by default in 2.5)