Several fixes to OAI-PMH harvesting protocol.