Twig_Sandbox_SecurityError: Calling "setOption" method on RC4
Core recently added a default sandbox so that it's not possible to e.g. call the delete method on node objects.

See https://www.drupal.org/node/2513266, you can bring it up there and try to allow it, try to extend it yourself or call that option in preprocess. Not sure what the best option is.