Fix for template resolution, LiftRules needs a reference to the context.
Merge pull request #2 from davewhittaker/master

Fixes for template resolution