Generates an frozen object with matching keys and values