Fixed Internal Compiler Error in VS 2010 by moving struct Op

There must have been some kind of scope conflict with where Op was declared,
because I just moved it outside of the function, and the ICE is gone.

TODO:
Fix namespace errors in test_functions.hpp