Make yang::vec match the corresponding Yang class as much as possible.