Added cloning of ManagedArray