Add support for Vec2 and Vec4 attributes

I tested this change on my end and it's working. Allows direct use of 2D coordinates and RGBA colors.