Restored the VS 2010 support. Added a test for operators outside types

Warning: this commit causes the generation of an uncompilable test library because incorrect code is generated for such operators.