BUG: wide_to_long should check for unique id vars (#16382)
 - [x] closes #16382 
 - [x] tests added / passed
 - [x] passes ``git diff upstream/master --name-only -- '*.py' | flake8 --diff``

Input validation: raise a ValueError in case `i` does not uniquely identify each row.
