started fixing na handling for typed vector