Merge "Add KeyValuePairs support to StatsEvent."