standardize keys when serializing tied vars