[mcs] Do type parameter conversion involving type parameters using dependency rules. Fixes #18473