Forbid model local variables in planner_objective.

Otherwise the preprocessor crashes.