MSVC: Work around some cases where templates nested in templates trigger compiler bugs.