Clone shared values
Small hotfix which clones shared values when retrieved to avoid passing them by reference which can lead to nasty bugs
Small hotfix which clones shared values when retrieved to avoid passing them by reference which can lead to nasty bugs