Generic Vector Serializer.