Bug fix for split QN approach: make sure the constraint function is called before the Jprod functions.