[ext] access static properties, fixed #1143

Twig extension access static properties wheras it should not