Use references in case a compiler does not perform copy elision.
Force vconfig members of wml_menu_item to manage their own memory.

Fixes bug #21127.
No reason to qualify a non-ref return value as "const".
Use references in case a compiler does not perform copy elision.
Take advantage of vector::front() returning a reference.