The problem was that if `type` is of primitive type, but `KotlinType` is actually an inline class type, then anyway we boxed this type as primitive
#KT-25324 Fixed