Implement a smarter deletion of properties when resizing an array.