adds KeyMap serialization

minor enhancements to KeyMap Iterators