Remove and consolidate various uses of reflection.

Yes, this was the only usage of MapKeys and MapKeys is not exactly idiomatic Go.