Fixed key mapping issue

The key mapping code wasn't handling the case where the mapping included
a tag which wasn't a special name.  For example "<dest>" should be
mapped simply as 6 characters.  It shouldn't result in an invalid
mapping

closes #1059
Removed a lot of unnecessry allocations in KeyNotationUtil