Simplify flavour map
Summary
This MR introduces the following changes
- Saving the labels in resampling step as int labels -> no mapping needed in writing step
- Writing the one-hot labels only in writing step
- This also solves the problem if two labels are defined with the same label_value (but different variables) or the label_value is a list