Added some template magic to un-const'ify the key when editing key-value pairs for associative containers.