WL-3369 Correctly handle list metadata values.

When we updated this code to copy with values not being deleted we didn’t handle the case where the value was a list of values. Now we do explicit type checking before casting.
Merge pull request #30 from ox-it/WL-3369

WL-3369 Correctly handle list metadata values.