[TwigBridge] add Twig dump() function + related tests and fixes