Added Vector2 compatibility for some classes
Generator rewrite