Make context available to template methods.
Fix generic template.
Bump version