Add key_map function for performing a map on all keys of a table.
Rename filterkey to key_filter for consistency.
Adjust comment on map to make it clear it applies to the values of a table.