Merge branch 'bugfix/copy-template-settings'. Fixes #28.