Copy arrays to avoid deep equal failures on extra properties