[ResourceBundle] Make Twig\ResourceExtension extendable.