Fix/vistab close
BUG: Wrong vis being closed when multiple vis are open at the same time
Changes:
- removeVisualization:
- Changed || to ?? for index handling
- Added validation check before operations
- reorderVisState:
- Added bounds validation check for indices
- Changed the active index updating logic to handle three cases:
- Moving the active tab
- Moving a tab before current active tab
- Moving a tab after current active tab
Some more validation checks added to other reducers