Convert a couple vec functions to return references and slices

Specifically head, head_opt, tail, tailn, init, initn, last, and last_opt.