Allow arrays to not be copied when adding a new key.

Fixes failing serialisation tests