data.dataset: Merge setSources/clear, optimize event count, extend tests