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