duplicate 0.3.0

The attribute macro `duplicate` can duplicate an item with variable substitution.
Documentation
<!--
If your pull request (PR) fixes a bug or implements a feature, you should link to the relevant issue below (simply add the issue's number right after 'Fixes #').
If there is no such issue, please make one first and link it below.
-->
#### Fixes # 
<!--
Usually, the linked issue should be sufficient information about the PR.
Therefore, only add additional text here if it is regarding the PR specifically and not the issue as a whole.
E.g., it could be a comment on the specific implementation, drawing attention to specific things reviewers should note about the PR or code, or questions for them to answer.
-->