Actually ensures that memo keys are hashable