Adding a testcase for #4964 - assert in debug/x64 on Windows
Fix for #4964 - assert in debug/x64 on Windows