robustify utils return functions, not MXFuns

This lets the user choose to make an MXFun or not