add twig macro statement scope resolve for variables #315