fix Issue 13864 - tuple expand causes range violation
Merge pull request #4216 from 9rnsr/fix13864

[REG2.066] Issue 13864 - tuple expand causes range violation