ts_stdlib: some strange typed-array management with vec.h