I suppose the issue might be caused by something like improper class loader isolation, but I'm mostly just guessing.
KTypeBase
is an internal class added in 1.4.0, so if it's not found, it means that the class loader which the call site is loaded with (it might be Spring internals or something) is not able to pick up kotlin-stdlib 1.4.0.
Could you please report an issue with the full stacktrace to https://kotl.in/issue so that we'd investigate it closer?