prefer prefix ++/--operator for e.g. iterators for performance reasons

A new bunch of performance related changes from postfix to prefix ++/--operator for e.g. iterators.

Includes two fixes for:
- add bounds check for a iterator in rgw/rgw_rados.cc
- use empty() instead of size() == 0