Switch DoubleKeyMap over to standard C++ types.

Storing pointers to the objects seems wrong but that’s an issue to deal
with at a later point.