call LoadModelIntoTab with consistent tab state (fixes crash 57349)
add tests for str::Utf8ToWcharBuf and fix x64 compilation (fixes issue 2637)