Added support for the vec2 type into the C++ wrapper classes.