fix madness with nint32 and nuint32
fixed more type problems