Bugfixes related to functional summary statistics