[templating] fixes

- fix twig extension classname
- add templating helpers for pagination