Bugfix in utils.reduce's smooth test