Fixes issue #30: reduce now supports extra arguments.