Correct substitution into theta types (after merge)