Support specifying a key conversion function for keywords in generators.