Fix clone method not being declared in arrays