Handling of arrays in clone method.