[Olena-patches] 1222: Make the trait solver rely on category inheritance.