Tiled Gallery: Pass context to partials as param.

Avoid having to litter the object instance (by putting stuff into `$this`) for partials, and allow the `template` and `partial` functions take a context array whose values will be extracted to the symbol table. Context required by partials is now passed via the context param.