fix issue with mutable lists
Merge pull request #1385 from dimagi/mutate

fix issue with mutable lists