Fixed the default int32 type which was wrong on amd64 (and added testcase).