vec: minor cleanup
implement Box<[T]> <-> Vec<T> conversions
improve the performance of the vec![] macro

Closes #17865