Generalizing code to support issue #55. It can no longer be expected that the first argument in a nonlinear operator is the sdpvar variable