Remove references to methods and functions that are only defined for Vecs. Rename immutable slice to shared slice