Fixes #897: bug in MX forward jac had a simple cause