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