[GHC] #10837: Constant-time indexing of closed type family axioms