Copy array as array when setting on JavaScript property.