type inference for substitutions (also, doc of QCheck updated)