fix getSlices for generic array, remove guava dependency