Function block(name) doesn't work with traits

In a complex Twig project, involving multi-inheritance with traits (`use` tag), I'm stuck on an inconsistent behavior of the `block()` function.

When an block is overrided in a trait, the blocks that where defined inside the parent block are not available in the trait while I can include them in the main template.

This PR adds a failing test case.