Closes #486, closes #572 : switched NLPQPSolver to use SX under the hood.