Making Lazy Templates implementation more elegant.

As @ixti said in the pull request https://github.com/nodeca/mincer/pull/63, the solution for providing lazy evaluation for templates based on a `solve` function member of a variable of type `function` is not the most elegant way to do this.

This pull request is an attempt to improve the implementation.