Added write/read tests for hdf5 in tests/vector.R