[Octave] Fix bug with adding inner variable 'cantor_tmp' in variable model
(cherry picked from commit 4d37af6fd27ea6f5480cc651c654213e563516bc)