Fix ArrayList Memory Leak

Fix a memory leak associated with the copy operator