Adding parent context to `extends` templates.

This fixes #269 - the part with `extends` tag.