Previously, in the kvstore, it was possible to get resolved values into lists, which would remain there forever, as
the original kvstore value was modified (which should never happen).

Now the values are copied before resolving them and if they are nested, to prevent this issue.
A simple test verifies this as well

Fixes #11