Resolved Twig extension scope issue (http://stackoverflow.com/a/18238101/370290)