Add HashMap::keys() to allow access to object keys

This is more a bug report than an actual PR.

I tried to add `keys()` to `Map`, but I have no clue how to make it work for `SortedMap`. This hack works for my specific case right now, so maybe including something like it is actually feasible...

Please share your thoughts.