Implement AddObj method
Fix a crash in gecode with pure nonlinear objective - bug discovered by Hakan Kjellerstrand.