Patched version of TypeCode.cs source file