Fix a couple of issues - iterator test should have been next_it != end() in both loops
Fix a couple of issues - iterator test should have been next_it != end() in both loops

Also the reverse iterator final condition in the second loop wouldn't work since the crend()s being compared were calculated at different times - one will refer to the begin() when there was only one item in the map, and the other will refer to begin() (ie. end()) when the map was empty.  So they won't compare equal.

found thanks to sdk_test.

meganz/sdk,meganz/sdk,meganz/sdk,Acidburn0zzz/sdk,Acidburn0zzz/sdk,Acidburn0zzz/sdk,Acidburn0zzz/sdk,Acidburn0zzz/sdk,Acidburn0zzz/sdk,Acidburn0zzz/sdk,meganz/sdk,Acidburn0zzz/sdk,meganz/sdk,meganz/sdk,meganz/sdk