fix build and de-slice

fixed some fallout from https://github.com/rust-lang/rust/pull/19167

removed some as_slice() that are no longer needed
I am not so sure about this one... It may seem confusing for people who don't know about `Deref`