parser: Shrink basic read_vec2 function a bit.