Remove StatefulInterface from type hint

To be fully compliant with the new property access strategy.
Otherwise, I can't use the TwigExtension for example.