Fixes #611 about NLPs without nonlinear constraints
Completed move of SCPgen