[bugfix] Include cctype because this is missing on OS X.
[bugfix] Let PersistentContainerMap::IteratorWrapper fulfill std::iterator interface

This fixes FS#1385.