Cleanup in eachArray and eachObject