Added proper support for arrays in deepClone()