fix issue #8171 on configuration tree for twig extension -- pairing up with @cordoval
added regression test