updated as_typed_vector and its tests.