Fixed bug with "reduce" function in listutils module.