Tentative fix for #496: Segfault in MXFunctionInternal::evalSX
Newer fix
Merge pull request #697 from casadi/fix496

Tentative fix for #694: Segfault in MXFunctionInternal::evalSX