Allows functions, filters and tests to use the template itself

Currently, only the environment, the source, the context and the outputBuffer instance can be used be functions, filters and tests. It makes sens to allow them to use the template itself - and that would allow them to acces the environment and the source from the template.