Implement IdVector for slices, too.