Fix compilation on VS2013
Moved GetConstructorForType and ...Flags to toGLSLOperand.c and make them non-static (add to headers as well)
Minor fixes, removed extra semicolon from output.
More smarts in the type analysis: if an instruction touches multiple components of vec4, make sure they're all marked to the same type.
- Swizzle calculation with mask.
- Proper support for matrix arrays with non-constant indexing
- int vs uint casts done properly.
Test updates