[RFC] Macros

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature? | yes
| BC breaks? | maybe
| New docs?     | no
| Tests pass?   | yes
| Fixed tickets | #1157, #1160, #1207, #1212
| License | MIT

Twig does not fully solved support for macros. Their implementation is incomplete and buggy. Jinja2 supports all of these changes in this PR.