Add @spec annotations to vec2 functions.