Serializer: Using vectors instead of arrays