Hans;
It is not having a type system that is causing problems, but that it often is a bit underdeveloped.
For example, if one wants dynamic typing, that can be done by having a type by which the other types can be derived dynamically. Then the problems like the one above cane be done by introducing a new type.