Fix NPE in user variables handling.
Active item improvements:
- Selected position now stored in lore with each menu in the path
- Item label no longer used to get selected item index
- Remembers position in previous menu for submenus
- View variables are cleanly replaced with the default value