Fixed issue where named arguments in macros does not work with template inheritance

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature? | no
| BC breaks? | no
| New docs?     | no
| Tests pass?   | yes
| Fixed tickets | #1157
| License | MIT