Auxiliary procedure mk_class_instance was not discarding partial solutions. This procedure is used by the apply and inversion (aka cases) tactics