Replace uses of std::vec::raw::to_ptr() and to_mut_ptr()

See:
* mozilla/rust#10984 - Some general clean-up of std::vec::raw
* mozilla/rust@164f7a2 - std::vec: convert to(_mut)_ptr to as_... methods on &[] and &mut [].