Update various menu-related functions

Made cosmetic as well as memory-saving changes to various functions,
including "menu_select_callback" and various menu row-drawing callbacks.