Fixed template and static bug in vec2/4.