Fixes #817: MX tape only allocated when needed
Concerning #817: No sensitivities of Jacobians and Hessians in NLP solver by default