new setter methods for Document and memory improvements for Query::ParseDataset