Even though it's more of a workaround than a solution I'll try with the external scripts later.
It works with external scripts (though I had to modify them to include full path to dccmd.exe).
So, I guess the question is what "W7RefreshRateHelper.GetRefreshRate: GetDisplayConfigBufferSizes(...) returned 8606222155958452224" means?
//W