Convert vec3 to metatables, add cdef for mat2.