Fix for getitem getting int32 and slice index, and add prune
Add and test prune