try not null upper bound as a suggestion in constraint system

 for declared <R: Any> the only constraint R <: T? should result in R = T (T? doesn't satisfy upper bound)