Prefer prefix ++/-- operators for non-primitive types.

Patch contributed by Julien from cppcheck warnings.