assignFromTupleList_ contain the same bug, it uses the wrong index variable
i instead of
idx. As these functions are never used, this never has been a problem. I propose to get rid of them, as they are internal and unused.
In case you want to keep them, this MR might be helpful, but someone should write tests for these three functions.