Small fix to the objective eval in the N2 solver
Fixed the issue reported by @rienq related to general w. matrices...

... when using the N^2 solver.