Fixed minor bugs. Added support for iterating over keys AND values in IterPairsAscend.