Id and Vector serialization.