add reduce/singledispatch translation