preprocessor: fix remove variable for objective function
preprocessor: fix remove variable for objective function

The preprocessor removes too many function elements from the objective
function. This is due to std::find_if and objective.elements.erase(it,
std::end(...)).

quesnel/baryonyx,quesnel/baryonyx,quesnel/baryonyx