Remove unneeded type parameters

Those are remains from a time when `as_slice` and `as_mut_slice` were
implemented as functions rather than methods. These days, they just
complicate everything.