Add some vec4 features, minor fixes