Use Symfony property accessor in twig extension

Uses the PropertyAccessor to correctly determine the getter method for non-trivial property access.