Partially de-vec-mut librustc
RIMOV core::run
RIMOV core::rand
RIMOV core::io
RIMOV core::hash
RIMOV core::vec

Also remove as many uses as possible of vec::cast_to_mut and
cast_from_mut