Added support for context creation inside twig.

{{ data|serialize('json', serialization_context().setGroups(['foo', 'bar'])) }}

{{ data|serialize('json', serialization_context().setVersion('1.0')) }}