test_matlab: add test for reuseterms
test_matlab: add test with reuseterms and aux fun
codegenerators:matlab: generate function from template
codegenerators:matlab: refactoring of parameter/variable definition