Add dump function to twig.