Follow up on #1478 to make `extend_vec_zeroed` and `insert_vec_zeroed` return errors on allocation failure.