fixed feature vectorization writing

Fixed feature vectorization when writing files (I validated if by chaining loading/writing the different file types). I could also provide this test.