BlockMacros: reset $_l->extends [fixes nette/nette#1498]

I hope it won't break anything else
- [x] fix tests in nette/latte
- [x] fix tests in nette/application (no modification needed, everything passed ok)
- [x] add testcase (nette/application#13)