Updated IdVector to compile after changes to Slice.
Fixed deprecation in tests by using new indexing operator.