more vec utiltiies, remove old vec4, temporarily remove state_vec4