added test for twig widget, added array assign support for twig widget