Initialise dirty dates for datasets and other fixes