Add context support for the XmlEncoder

$context variable was added in symfony 2.3 but not inside this encoder